<?php
$api = array(
    // Social users
    'social.user.login' => array(
        'class' => 'Social_User',
        'method' => 'login',
        'params' => array('username', 'password')
    ),
    'social.user.register' => array(
        'class' => 'Social_User',
        'method' => 'register',
        'params' => array('username', 'password', 'email')
    ),
    'social.user.auth' => array(
        'class' => 'Social_User',
        'method' => 'auth',
        'params' => array('session_key')
    ),
    'social.user.logout' => array(
        'class' => 'Social_User',
        'method' => 'logout',
        'params' => array('session_key')
    ),

    // Social posts
    'social.post.add' => array(
        'class' => 'Social_Post',
        'method' => 'addPost',
        'params' => array('session_key', 'title', 'content')
    ),
    'social.post.edit' => array(
        'class' => 'Social_Post',
        'method' => 'editPost',
        'params' => array('session_key', 'post_id', 'title', 'content')
    ),
    'social.post.delete' => array(
        'class' => 'Social_Post',
        'method' => 'deletePost',
        'params' => array('session_key', 'post_id')
    ),
    'social.post.list' => array(
        'class' => 'Social_Post',
        'method' => 'listPost',
        'params' => array('type', 'user_id', 'group_id', 'category_id', 'current_page', 'page_size')
    ),
);
?>
